﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;


namespace AgileShare.Framework.Office.ExchangeServices
{

    [Serializable]
    public class CalendarEntity
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Subject { get; set; }
        /// <summary>
        /// 发送时间
        /// </summary>
        public DateTime DateTimeSent { get; set; }
        /// <summary>
        /// 开始时间
        /// </summary>
        public DateTime Start { get; set; }
        /// <summary>
        /// 结束时间
        /// </summary>
        public DateTime End { get; set; }
        /// <summary>
        /// 内容
        /// </summary>
        public string Body { get; set; }
        /// <summary>
        /// 抄送
        /// </summary>
        public string DisplayTo { get; set; }
        /// <summary>
        /// 位置
        /// </summary>
        public string Location { get; set; }
        /// <summary>
        /// 时长
        /// </summary>
        public TimeSpan Duration { get; set; }
        /// <summary>
        /// 客户端编辑URL
        /// </summary>
        public string WebClientReadFormQueryString { get; set; }
        /// <summary>
        /// 客户端查看URL
        /// </summary>
        public string WebClientEditFormQueryString { get; set; }
    }

    public enum ExVersion
    {
        Exchange2007_SP1 = 0,
        Exchange2010 = 1,
        Exchange2010_SP1 = 2,
        Exchange2010_SP2 = 3,
        Exchange2013 = 4,
    }

    [Serializable]
    public class ExchagneResult
    {
        public int count { get; set; }
    }
}
